package com.example.a2209_shop.database

import androidx.room.Database
import androidx.room.RoomDatabase
import com.example.base.entity.ChipEntity
import com.example.base.entity.DetailEntity
import com.example.base.entity.ShopEntity
import com.example.base.entity.UserEntity
/**
 * 数据库   区别一：entities:改为了[] 二：表的形式：::class
 */
@Database(entities = [UserEntity::class,ChipEntity::class,DetailEntity::class,ShopEntity::class], version = 1, exportSchema = false)
abstract class AppDataBase:RoomDatabase() {
    abstract fun getUserDao(): UserDao
    abstract fun getChipDao(): ChipDao

    abstract fun getGoodsDao(): GoodsDao

    abstract fun getOrderDao(): OrderDao
}